#include <REGX52.H>
#include "MatrixLED.h"
#include "Delay.h"

unsigned int a[]={
0x42,0x7E,0x42,0x00,0x00,0x7E,0x02,0x02,0x00,0x3C,0x42,0x42,0x3C,0x00,0x70,0x1C,
0x02,0x1C,0x70,0x00,0x7E,0x52,0x52,0x00,0x00,0x70,0x1E,0x70,0x00,0x3C,0x42,0x42,
0x3C,0x00,0x7C,0x02,0x02,0x7C,0x00,0x00,
};

void main()
{
    unsigned int i,j=0,count=0;
    MatrixLED_Init();
	while(1)
	{
		for (i=0;i<8;i++)
        {
            MatrixLED_ShowColumn(i,a[i+j]);
        }
        count++;
        if(count>10)
        {
            count=0;
            j++;
        }
        if(j>31)
        {j=0;Delay(500);}
	}
}